package d3_recursion;

public class RecursionTest1 {
    public static void main(String[] args) {
        // 目标: 认识递归
        test1();//直接递归 StackOverflowError直接把栈给干掉了
        test2();//间接递归
    }

    public static void test2() {
        System.out.println("test2");
        test3();
    }

    private static void test3() {
        test2();
    }

    public static void test1() {
        System.out.println("test1");
        test1();
    }


}
